package cn.clwxy.gdz.dao;

import cn.clwxy.gdz.util.BaseDao;

public class TeacherGradeDaoImpl extends BaseDao implements TeacherGradeDao{

	@Override
	public int deleteTG(Integer teacherId, Integer gradeId) {
		String sql="DELETE FROM teachergraderelative WHERE teacherId=? AND gradeId=?";
		return super.update(sql, teacherId,gradeId);
	}

	@Override
	public int addTG(Integer teacherId, Integer gradeId) {
		String sql="INSERT INTO teachergraderelative(teacherId,gradeId)value(?,?)";
		return super.update(sql, teacherId,gradeId);
	}

}
